#include"shm.cc"
#include <cstring>
int main()
{
    shm client(CLIENT);
    client.client_get();
    char* messages=(char*)client.virtual_address();
    std::cout << messages << std::endl;
    int j=0;
    for(int i=1;j<100;i+=1,j+=2)
    {
        strcpy(messages, "123\0");
       // sleep(2);
        sleep(1);
      //  messages[i]=i;
      //memcpy(messages, "1\0");
       // messages[i+1]=i;
      //  sleep(1);
        //cout<<messages[i]<<" "<<messages[i+1]<<endl;
    }
    return 0;
}